package com.order;

import com.RibbonConfig.ProduceRibbon;
import com.RibbonConfig.RibbonConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableFeignClients
@RibbonClients(value = {//扫描
        @RibbonClient(name="stock-service",configuration = RibbonConfig.class)//针对这个服务名和配置类配置
        ,@RibbonClient(name="producer-service",configuration = ProduceRibbon.class)//多个服务
})
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }

}
